#include "speechManager.h"

int main()
{
	srand((unsigned)time(NULL));
	SpeechManager sm;
	int choice = 0;
	while (true)
	{
		sm.Show_Menu();
		cout << "请输入您的选择: " << endl;
		cin >> choice;
		switch (choice)
		{
		case 0:			//退出系统
			sm.ExitSystem();
			break;
		case 1:			//开始比赛
			sm.StartSpeech();
			break;
		case 2:			//查看记录
			sm.ShowRecord();
			break;
		case 3:			//清空记录
			sm.clearRecord();
			break;
		default:
		{
			cout << "输入错误。" << endl;
			system("pause");
			system("cls");
			break;
		}
		}
	}
	 

	//for (map<int, Speaker>::iterator it = sm.m_Speaker.begin(); it != sm.m_Speaker.end(); it++)
	//{
	//	cout << "选手编号:" << it->first
	//		<< "\t姓名:" << it->second.m_Name
	//		<< "\t成绩: " << it->second.m_Score[0] << endl;
	//}


	return 0;
}